//
//  HotCell.m
//  掌厨
//
//  Created by aoyolo on 15/10/23.
//  Copyright (c) 2015年 李祖铜. All rights reserved.
//

#import "HotCell.h"
#import "UIImageView+WebCache.h"

#import "MoreController.h"
#import "RecipeViewController.h"

@implementation HotCell

- (void)awakeFromNib {
    // Initialization code
}
//热门推荐提取数据
-(void)setHot:(NSArray *)hotArray
{
    NSDictionary *dict = hotArray[0];
    self.label1.text = [dict objectForKey:@"title"];
    self.label2.text = [dict objectForKey:@"description"];
    [_image1 sd_setImageWithURL:[NSURL URLWithString:dict[@"image"]]];
    
    NSDictionary *dict1 = hotArray[1];
    self.label3.text = [dict1 objectForKey:@"title"];
    self.label4.text = [dict1 objectForKey:@"description"];
    [_image2 sd_setImageWithURL:[NSURL URLWithString:dict1[@"image"]]];
}

- (IBAction)More:(UIButton *)sender {
    MoreController *MoreCtl = [[MoreController alloc]init];
    MoreCtl.hidesBottomBarWhenPushed = YES;
    RecipeViewController *viewCtl = (RecipeViewController *)[self.superview.superview.superview nextResponder];
    [viewCtl.navigationController pushViewController:MoreCtl animated:YES];


}






@end
